﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Gallery.aspx.cs" Inherits="Admin_Gallery" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head id="Head1" runat="server">
    <title>درباره ما</title>
    <link href="../Guest/Gallery/styles/visuallightbox.css" rel="stylesheet" type="text/css" />
    <link href="../Guest/Gallery/styles/vlightbox6.css" rel="stylesheet" type="text/css" />
    <script src="../Guest/Gallery/scripts/jquery.min.js" type="text/javascript"></script>
    <script src="../Guest/Gallery/scripts/visuallightbox.js" type="text/javascript"></script>
    <script src="../Guest/Gallery/scripts/vlbdata6.js" type="text/javascript"></script>
    <link href="../App_Themes/Default/css/TableStyles.css" rel="stylesheet" type="text/css" />
    <link href="../App_Themes/Default/css/B_Yekan.css" rel="stylesheet" type="text/css" />
    <link href="../App_Themes/Default/css/reset.css" rel="stylesheet" type="text/css" />
    <link href="../App_Themes/Default/css/slider.css" rel="stylesheet" type="text/css" />
    <link href="../App_Themes/Default/css/style.css" rel="stylesheet" type="text/css" />
    <link href="../App_Themes/Default/css/grid_12.css" rel="stylesheet" type="text/css" />
    <link href="../App_Themes/Default/css/jqtransform.css" rel="stylesheet" type="text/css" />
    <script src="../App_Themes/Default/js/jquery-1.7.min.js" type="text/javascript"></script>
    <script src="../App_Themes/Default/js/jquery.easing.1.3.js" type="text/javascript"></script>
    <script src="../App_Themes/Default/js/jquery.jqtransform.js" type="text/javascript"></script>
    <script src="../App_Themes/Default/js/FF-cash.js" type="text/javascript"></script>
    <script src="../App_Themes/Default/js/cufon-replace.js" type="text/javascript"></script>
    <script src="../App_Themes/Default/js/tms-0.4.x.js" type="text/javascript"></script>
    <script>
        function CheckName(sender, e) {
          var maxUplouder = document.getElementById("<%# MaxPicFileUpload.ClientID %>");
            var minUplouder = document.getElementById("<%# MinPicFileUpload.ClientID %>");
          if (maxUplouder != "") {
                var maxFilepath = maxUplouder.value;
                var maxFilename = maxFilepath.substring(maxFilepath.lastIndexOf('\\') + 1).toLowerCase();
                var minFilepath = minUplouder.value;
                var minFilename = minFilepath.substring(minFilepath.lastIndexOf('\\') + 1).toLowerCase();
                if (minFilename != maxFilename) {
                    alert("نام دو تصویر باید یکسان باشد");
                    e.IsValid = false;
                    return;
                }
            }
            e.IsValid = true;
        }        
    </script>
    <script>
        $(document)
    .ready(function () {
        $('.form-1')
        .jqTransform();
        $('.slider')
        ._TMS({
            show: 0,
            pauseOnHover: true,
            prevBu: '.prev',
            nextBu: '.next',
            playBu: false,
            duration: 1000,
            preset: 'fade',
            pagination: true,
            pagNums: false,
            slideshow: 7000,
            numStatus: false,
            banners: false,
            waitBannerAnimation: false,
            progressBar: false
        })
    });
    </script>
    <!--[if lt IE 9]>
    <script type="text/javascript" src="../App_Themes/Default/js/html5.js"></script>
<link rel="stylesheet" type="text/css" href="../App_Themes/Default/css/ie.css" />
<![endif]-->
</head>
<body>
    <form id="Form1" runat="server">
    <div class="main">
        <!--==============================header=================================-->
        <div class="header">
            <div>
                <h1>
                    <a href="../Default.aspx">
                        <img src="../App_Themes/Default/images/logo.jpg" alt="" /></a></h1>
                <div id="slide">
                    <div class="slider">
                        <ul class="items">
                            <li>
                                <img src="../App_Themes/Default/images/slider-1.jpg" alt="" /></li>
                            <li>
                                <img src="../App_Themes/Default/images/slider-2.jpg" alt="" /></li>
                            <li>
                                <img src="../App_Themes/Default/images/slider-3.jpg" alt="" /></li>
                            <li>
                                <img src="../App_Themes/Default/images/slider-4.jpg" alt="" /></li>
                        </ul>
                    </div>
                    <a href="#" class="prev"></a><a href="#" class="next"></a>
                </div>
                <div class="nav">
                    <ul class="menu">
                        <li><a id="A1" href="~/Admin/Confirm.aspx" runat="server">آزمایش های تایید شده</a></li>
                        <li><a id="A2" href="~/Admin/Paper.aspx" runat="server">مقاله ها</a></li>
                        <li><a id="A3" href="~/Admin/Help.aspx" runat="server">راهنمای پذیرش</a></li>
                        <li class="current"><a id="A4" href="~/Admin/Gallery.aspx" runat="server">گالری</a></li>
                        <li><a id="A5" href="~/Admin/Sentence.aspx" runat="server">جمله روز</a></li>
                        <li><a id="A6" href="~/Admin/Category.aspx" runat="server">گروه آزمایش</a></li>
                        <li><a id="A7" href="~/Admin/CategoryItem.aspx" runat="server">آزمایشات</a></li>
                        <li><a id="A8" href="~/Admin/User.aspx" runat="server">کاربران</a></li>
                        <li><a id="A9" href="~/Admin/ChangePassword.aspx" runat="server">تغییر رمز</a></li>
                        <li><a id="logout_a" href="#" runat="server" onclick="if(!confirm('آیا قصد خروج از سیستم را دارید؟')) return false;"
                            onserverclick="LogoutButton_Click">خروج از سیستم</a></li>
                    </ul>
                </div>
            </div>
        </div>
        <!--==============================content================================-->
        <div id="content">
            <div class="container_12">
                <div class="grid_12" style="float: right">
                    <h2 class="top-1 p3">
                        گالری تصاویر</h2>
                    <div align="center">
                        <table style="width: 100%" title="گالری">
                            <tr>
                                <td>
                                    <table>
                                        <tr>
                                            <td style="width: 300px;" valign="top" align="right">
                                                <asp:MultiView ID="ImageMultiView" runat="server">
                                                    <asp:View ID="NoFileView" runat="server">
                                                        <p style="color: #767676">
                                                            تصویری در مسیر فایل های گالری وجود ندارد
                                                        </p>
                                                    </asp:View>
                                                    <asp:View ID="FileView" runat="server">
                                                        <div style="overflow: auto; height: 300px; padding: 0px; margin: 0px">
                                                            <asp:Table ID="ImageTable" runat="server">
                                                            </asp:Table>
                                                        </div>
                                                    </asp:View>
                                                </asp:MultiView>
                                            </td>
                                            <td style="width: 20px">
                                            </td>
                                            <td valign="top" align="center">
                                                <table border="0" cellpadding="0" cellspacing="0" style="width: 500px">
                                                    <tr valign="middle">
                                                        <td style="width: 80px; color: #767676" align="right">
                                                            تصویر کوچک:
                                                        </td>
                                                        <td style="width: 380px" align="right" dir="rtl">
                                                            <asp:FileUpload ID="MinPicFileUpload" runat="server" Width="350px" />
                                                            <asp:RequiredFieldValidator ID="MinRequiredFieldValidator" runat="server" ErrorMessage="*"
                                                                ControlToValidate="MinPicFileUpload" ValidationGroup="Insert"></asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr valign="middle">
                                                        <td style="width: 80px; color: #767676" align="right">
                                                            تصویر بزرگ:
                                                        </td>
                                                        <td style="width: 380px" align="right" dir="rtl">
                                                            <asp:FileUpload ID="MaxPicFileUpload" runat="server" Width="350px" />
                                                            <asp:RequiredFieldValidator ID="MaxRequiredFieldValidator" runat="server" ErrorMessage="*"
                                                                ControlToValidate="MaxPicFileUpload" ValidationGroup="Insert"></asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr valign="middle">
                                                        <td style="width: 80px" align="right">
                                                        </td>
                                                        <td style="width: 380px" align="right" dir="rtl">
                                                            <asp:CustomValidator ID="fileNameCustomValidator" ValidationGroup="Insert" ControlToValidate="MaxPicFileUpload"
                                                                runat="server" ClientValidationFunction="CheckName" ErrorMessage="نام دو تصویر باید یکسان باشد"></asp:CustomValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" align="left">
                                                            <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                                                                <tr>
                                                                    <td style="height: 15px">
                                                                        &nbsp;
                                                                    </td>
                                                                    <td align="left" valign="top" style="width: 110px;">
                                                                    </td>
                                                                    <td align="left" valign="top" style="width: 110px;">
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td style="height: 15px">
                                                                        &nbsp;
                                                                    </td>
                                                                    <td align="left" valign="top" style="width: 110px;">
                                                                        <asp:ImageButton ID="InsertButton" runat="server" CommandName="Insert" SkinID="InsertButton"
                                                                            ValidationGroup="Insert" OnClick="InsertButton_Click" />
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="clear">
                </div>
            </div>
        </div>
    </div>
    <!--==============================footer=================================-->
    <footer>
        <p>Delta System Anahita © 2020 </p>
    </footer>
    </form>
</body>
</html>
